<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本的样式</title>
    <style>
        .box1{
            font-size: 50px;
            /* text-decoration: underline; */
            text-decoration:overline red dotted;
            /* text-decoration:line-through; */
        }
        .box2{
            width: 100px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

        }
    </style>
</head>
<body>
   <div class="box1">今天天气真不错</div>
   <div class="box2">
       Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus, nulla sapiente, dolore tenetur obcaecati maiores consectetur voluptatem id, voluptas repudiandae explicabo! Non ut sit minima dolorem magnam eos, aliquam accusantium!
   </div>
</body>
</html>